import request from "@/utils/request";

// 创建队伍
export function addTeam(team: any) {
    return request({
        method: "POST",
        url: "/team/add",
        data: team,
    })
}

// 队伍列表
export function listTeam() {
    return request({
        method: "GET",
        url: "/team/list",
    })
}

// 加入队伍
export function joinTeam(team: any) {
    return request({
        method: "POST",
        url: "/team/join",
        data: team,
    })
}

export function getTeamById(id: any) {
    return request({
        method: "GET",
        url: `/team/get`,
        params: {
            id
        }
    })
}


export function updateTeam(team: any) {
    return request({
        method: "POST",
        url: `/team/update`,
        data: team,
    })
}




